export const _columns = [
  {
    title: '#',
    scopedSlots: { customRender: 'serial' },
    width: 50
  },
  {
    title: '提成类型',
    dataIndex: 'incentiveName',
    width: 200
    // scopedSlots: { customRender: 'incentiveName' }
  },
  {
    title: '具体岗位',
    dataIndex: 'job2'
    // scopedSlots: { customRender: 'job2' }
  },
  {
    title: '金额',
    dataIndex: 'amount'
  },
  {
    title: '固定奖金分配比例',
    dataIndex: 'rate',
    width: 100
  },
  {
    title: '员工',
    dataIndex: 'name',
    width: 100
  },
  {
    title: '备注',
    dataIndex: 'note'
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: '150px',
    scopedSlots: { customRender: 'action' }
  }
]

export const columns = [
  {
    title: '#',
    scopedSlots: { customRender: 'serial' },
    width: 50
  },
  {
    title: '提成规则',
    dataIndex: 'type',
    width: 100
  },
  {
    title: '职责',
    dataIndex: 'job2',
    width: 140,
    scopedSlots: { customRender: 'job2' }
  },
  {
    title: '员工',
    dataIndex: 'name',
    width: 100
  },
  {
    title: '固定提成金额',
    dataIndex: 'fixedReward',
    width: 150
  },
  {
    title: '毛利奖金金额',
    dataIndex: 'grossReward',
    width: 150
  },
  {
    title: '项目完成情况',
    dataIndex: 'evaluation',
    width: 180,
    scopedSlots: { customRender: 'evaluation' }
  },
  {
    title: '合计',
    dataIndex: 'totalReward',
    width: 150
  },
  {
    title: '分配权重',
    dataIndex: 'rate',
    width: 60
  },
  {
    title: '备注',
    dataIndex: 'note',
    scopedSlots: { customRender: 'note' },
    width: 120
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 150,
    scopedSlots: { customRender: 'action' }
  }
]
export const mockData = [
  {
    type: '业务绩效',
    children: [
      {
        type: '全职业务',
        // name: '林林',
        incentiveName: '业务员',
        rate: '100%',
        rate1: '100%',
        amount1: '100000',
        amount: '50000',
        total: '150000',
        fenpei: true,
        children: [{
          // type: '全职业务',
          name: '林小林',
          incentiveName: '业务员',
          job2: '业务员、策划组成员',
          rate: '50%',
          rate1: '50%',
          amount1: '50000',
          amount: '250000',
          total: '75000',
          note: '	可以领取业务员和策划提成',
          delete: true
        }]
      },
      {
        type: '兼职业务',
        // name: '林林',
        incentiveName: '业务员',
        rate: '100%',
        amount1: '100000',
        amount: '50000'
      }
    ]
  },
  {
    type: '生产绩效',
    children: [
      {
        type: '策划组',
        // rate: '100%',
        rate1: '20%',
        amount1: '0',
        amount: '50000',
        total: 50000,
        children: [
          {
            // type: '全职业务',
            name: '林小林',
            incentiveName: '业务员',
            job2: '业务员、策划组成员',
            rate: '20%',
            amount1: '0',
            amount: '10000',
            total: '10000',
            note: '	可以领取业务员和策划提成',
            delete: true
          },
          {
            // type: '全职业务',
            name: '林2林',
            incentiveName: '业务员',
            job2: '策划',
            // rate: '100%',
            rate: '30%',
            amount1: '0',
            amount: '15000',
            total: '15000',
            note: '	第二个策划',
            delete: true
          }
        ],
        pingding: true,
        fenpei: true
      },
      {
        type: '设计组',
        rate: '100%',
        amount1: '0',
        amount: '50000',
        pingding: true,
        fenpei: true,
        children: [
          {
            // type: '全职业务',
            name: '林小林',
            job2: '业务员、策划组成员',
            rate: '100%',
            rate1: '20%',
            amount1: '0',
            amount: '10000',
            total: '10000',
            note: '	可以领取业务员和策划提成',
            delete: true
          },
          {
            // type: '全职业务',
            name: '林2林',
            job2: '介绍业务、策划工作',
            rate: '100%',
            rate1: '30%',
            amount1: '0',
            amount: '15000',
            total: '15000',
            note: '	第二个策划',
            delete: true
          }
        ]
      },
      {
        type: '程序组',
        rate: '100%',
        amount1: '0',
        amount: '50000',
        pingding: true,
        fenpei: true,
        children: [
          {
            // type: '全职业务',
            name: '林小林',
            incentiveName: '业务员',
            job2: '策划',
            rate: '100%',
            rate1: '20%',
            amount1: '0',
            amount: '10000',
            total: '10000',
            note: '	可以领取业务员和策划提成',
            delete: true
          },
          {
            // type: '全职业务',
            name: '林小林',
            incentiveName: '业务员',
            job2: '策划',
            rate: '100%',
            rate1: '30%',
            amount1: '0',
            amount: '15000',
            total: '15000',
            note: '	第二个策划',
            delete: true
          }
        ]
      },
      {
        type: '内容组组',
        rate: '100%',
        amount1: '',
        amount: '50000',
        pingding: true,
        fenpei: true,
        children: [
          {
            // type: '全职业务',
            name: '林小林',
            incentiveName: '业务员',
            job2: '策划',
            rate: '100%',
            rate1: '20%',
            amount1: '0',
            amount: '10000',
            total: '10000',
            note: '	可以领取业务员和策划提成',
            delete: true
          },
          {
            // type: '全职业务',
            name: '林小林',
            incentiveName: '业务员',
            job2: '策划',
            rate: '100%',
            rate1: '30%',
            amount1: '0',
            amount: '15000',
            total: '15000',
            note: '	第二个策划',
            delete: true
          }
        ]
      },
      {
        type: '硬件开发组',
        rate: '100%',
        amount1: '0',
        amount: '50000',
        pingding: true,
        fenpei: true,
        children: [
          {
            // type: '全职业务',
            name: '林小林',
            incentiveName: '业务员',
            job2: '策划',
            rate: '100%',
            rate1: '20%',
            amount1: '0',
            amount: '10000',
            total: '10000',
            note: '	可以领取业务员和策划提成',
            delete: true
          },
          {
            // type: '全职业务',
            name: '叶豪格',
            job2: '策划二号',
            rate: '100%',
            rate1: '30%',
            amount1: '0',
            amount: '15000',
            total: '15000',
            note: '	第二个策划',
            delete: true
          }
        ]
      }
    ]
  },
  {
    type: '工程绩效',
    children: [{
      type: '项目负责人',
      rate: '100%',
      rate1: '100%',
      amount1: '80000',
      amount: '30000',
      total: '110000',
      children: [
        {
          // type: '全职业务',
          name: '汪栋梁',
          job2: '项目组负责人',
          rate: '100%',
          rate1: '20%',
          amount1: '0',
          amount: '10000',
          total: '10000',
          note: '	项目组负责人，可以领取硬软件提成、项目经理毛利奖金',
          delete: true
        }
      ],
      pingding: true,
      fenpei: true
    },
    {
      type: '项目组成员',
      rate: '100%',
      rate1: '100%',
      amount1: '20000',
      amount: '10000',
      children: [
        {
          // type: '全职业务',
          name: '张超',
          job2: '设备调试',
          rate: '100%',
          rate1: '20%',
          amount1: '0',
          amount: '10000',
          total: '10000',
          note: '	可以领取项目组固定提成、项目组毛利奖金',
          delete: true
        },
        {
          // type: '全职业务',
          name: '杨金龙',
          job2: '设备安装',
          rate: '100%',
          rate1: '30%',
          amount1: '0',
          amount: '15000',
          total: '15000',
          note: '可以领取项目组固定提成、项目组毛利奖金',
          delete: true
        }
      ],
      fenpei: true
    }
    ]
  },
  {
    type: '管理绩效',
    children: [{
      type: '行政管理',
      rate: '100%',
      rate1: '100%',
      amount1: '4000',
      amount: '0',
      total: '4000',
      fenpei: 1,
      children: [
        {
          name: '汪月霞',
          job2: '会计',
          rate: '50%',
          rate1: '100%',
          amount1: '4000',
          amount: '0',
          total: '2000',
          note: '行政只有固定提成',
          delete: true
        },
        {
          name: '曾益蛾',
          job2: '人事',
          rate: '50%',
          rate1: '100%',
          amount1: '4000',
          amount: '0',
          total: '2000',
          note: '行政只有固定提成,可以分配多人',
          delete: true
        }
      ]
    }
    ]
  }
]
